﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OptusMobile.Web.ServerComponents.Common
{
    /// <summary>
    /// Provides basic low level functionalities.
    /// </summary>
    public class PlatformService:EFManagerBase
    {
        /// <summary>
        /// Creates ID when inserting a new record to database.
        /// </summary>
        /// <param name="tableName">The name of table to insert record</param>
        /// <returns>The generated ID.</returns>
        public string CreateID(string tableName)
        {
            try
            {
                return this.ObjectContext.CreateID(tableName);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
